package com.testmanager.testmananger.shuiyou.szjk.domain;

import com.testmanager.testmananger.foundation.domain.AbstractAuditingEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data
@Accessors(chain = true)
@Table(name="change_expression")
@Entity
public class ChangeExpressionEntity extends AbstractAuditingEntity implements Serializable {
    private static final long serialVersionUID = 4164654011994959680L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;

    @Column(name="zip_file_id")
    private long zipFileId;
    @Column(name = "change_record_id")
    @NotNull
    private long changeRecordId;
    @Column(name="file_name")
    private String fileName;
    @Column
    @NotNull
    private String expression;

    @Column(name = "value",length = 1024)
    private String changeValue;

    @Column
    private int type;  //类型   1. redis 2.oterdb  3. zipfile
}
